package com.lihui.test;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2022/10/24  16:13
 */
public class Demo2 {
    public static int hammingWeight(int n) {
        return n & 1;
    }

    public static void main(String[] args) {
       int n = 000001010;
        System.out.println(hammingWeight(n));

    }
}
